<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts: posix/posix_tests.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">ESP8266ILI9341DisplayProject</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_201f8e026df3a06f760b6173e807b6b9.html">posix</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">posix_tests.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>fatfs test utilities with user interface  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="user__config_8h_source.html">user_config.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="fatfs_8h_source.html">fatfs.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="time_8h_source.html">lib/time.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="stringsup_8h_source.html">lib/stringsup.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="mathio_8h_source.html">printf/mathio.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="posix_8h_source.html">posix.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="posix__tests_8h_source.html">posix_tests.h</a>&quot;</code><br />
</div>
<p><a href="posix__tests_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:aeca034f67218340ecb2261a22c2f3dcd"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix__tests_8c.html#aeca034f67218340ecb2261a22c2f3dcd">BUFSIZE</a>&#160;&#160;&#160;512</td></tr>
<tr class="separator:aeca034f67218340ecb2261a22c2f3dcd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ae59f48db88ed3bb8f9c549a7fbe9717d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix__tests_8c.html#ae59f48db88ed3bb8f9c549a7fbe9717d">posix_help</a> (int full)</td></tr>
<tr class="separator:ae59f48db88ed3bb8f9c549a7fbe9717d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36d7c93fa658c992f9a881b89bb7f0af"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix__tests_8c.html#a36d7c93fa658c992f9a881b89bb7f0af">posix_tests</a> (int argc, char *argv[])</td></tr>
<tr class="memdesc:a36d7c93fa658c992f9a881b89bb7f0af"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX tests.  <a href="#a36d7c93fa658c992f9a881b89bb7f0af">More...</a><br /></td></tr>
<tr class="separator:a36d7c93fa658c992f9a881b89bb7f0af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeff1a094f806e4de30ef181e9a09cbe4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix__tests_8c.html#aeff1a094f806e4de30ef181e9a09cbe4">cat</a> (char *name, int dopage)</td></tr>
<tr class="memdesc:aeff1a094f806e4de30ef181e9a09cbe4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Display the contents of a file.  <a href="#aeff1a094f806e4de30ef181e9a09cbe4">More...</a><br /></td></tr>
<tr class="separator:aeff1a094f806e4de30ef181e9a09cbe4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa20d1cbe580573b96d08f9429a08fcd3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix__tests_8c.html#aa20d1cbe580573b96d08f9429a08fcd3">copy</a> (char *from, char *to)</td></tr>
<tr class="memdesc:aa20d1cbe580573b96d08f9429a08fcd3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy a file.  <a href="#aa20d1cbe580573b96d08f9429a08fcd3">More...</a><br /></td></tr>
<tr class="separator:aa20d1cbe580573b96d08f9429a08fcd3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8b824040392b9b3a34fed57d72a1313"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix__tests_8c.html#ad8b824040392b9b3a34fed57d72a1313">hexdump</a> (char *name, int dopage)</td></tr>
<tr class="memdesc:ad8b824040392b9b3a34fed57d72a1313"><td class="mdescLeft">&#160;</td><td class="mdescRight">hex listing of file with paging, "q" exits  <a href="#ad8b824040392b9b3a34fed57d72a1313">More...</a><br /></td></tr>
<tr class="separator:ad8b824040392b9b3a34fed57d72a1313"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6ce57bb64ab0fd7f91d04079fc4b070"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix__tests_8c.html#ad6ce57bb64ab0fd7f91d04079fc4b070">setpage</a> (int count)</td></tr>
<tr class="separator:ad6ce57bb64ab0fd7f91d04079fc4b070"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a568ac783ed7c976d2832966dcbce607c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix__tests_8c.html#a568ac783ed7c976d2832966dcbce607c">testpage</a> (int count)</td></tr>
<tr class="memdesc:a568ac783ed7c976d2832966dcbce607c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Used to page output of functions like cat, hexdump, etc.  <a href="#a568ac783ed7c976d2832966dcbce607c">More...</a><br /></td></tr>
<tr class="separator:a568ac783ed7c976d2832966dcbce607c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a573eb4f7de945139101e2cfb59111722"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix__tests_8c.html#a573eb4f7de945139101e2cfb59111722">ls_info</a> (char *name, int verbose)</td></tr>
<tr class="memdesc:a573eb4f7de945139101e2cfb59111722"><td class="mdescLeft">&#160;</td><td class="mdescRight">list one file  <a href="#a573eb4f7de945139101e2cfb59111722">More...</a><br /></td></tr>
<tr class="separator:a573eb4f7de945139101e2cfb59111722"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6e0550e9557209680b1640c814746d8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix__tests_8c.html#ad6e0550e9557209680b1640c814746d8">ls</a> (char *name, int verbose)</td></tr>
<tr class="memdesc:ad6e0550e9557209680b1640c814746d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Directory listing.  <a href="#ad6e0550e9557209680b1640c814746d8">More...</a><br /></td></tr>
<tr class="separator:ad6e0550e9557209680b1640c814746d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e04c0a3e471dd3212246ad0e0f710ea"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix__tests_8c.html#a0e04c0a3e471dd3212246ad0e0f710ea">logfile</a> (char *name, char *str)</td></tr>
<tr class="memdesc:a0e04c0a3e471dd3212246ad0e0f710ea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Log string to a file.  <a href="#a0e04c0a3e471dd3212246ad0e0f710ea">More...</a><br /></td></tr>
<tr class="separator:a0e04c0a3e471dd3212246ad0e0f710ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d4059ff64356316a5f13d16cdd90fb5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix__tests_8c.html#a8d4059ff64356316a5f13d16cdd90fb5">sum</a> (char *name)</td></tr>
<tr class="memdesc:a8d4059ff64356316a5f13d16cdd90fb5"><td class="mdescLeft">&#160;</td><td class="mdescRight">sum of a file with 16bit hex and integer results  <a href="#a8d4059ff64356316a5f13d16cdd90fb5">More...</a><br /></td></tr>
<tr class="separator:a8d4059ff64356316a5f13d16cdd90fb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a759815811bc60d82eba7fa71442b9d9c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix__tests_8c.html#a759815811bc60d82eba7fa71442b9d9c">upload</a> (char *name)</td></tr>
<tr class="memdesc:a759815811bc60d82eba7fa71442b9d9c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Capture an ASCII file to sdcard First blank line exits capture.  <a href="#a759815811bc60d82eba7fa71442b9d9c">More...</a><br /></td></tr>
<tr class="separator:a759815811bc60d82eba7fa71442b9d9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a8103355735500cb8d1c1eea35e352cda"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix__tests_8c.html#a8103355735500cb8d1c1eea35e352cda">_pagesize</a> = 25</td></tr>
<tr class="memdesc:a8103355735500cb8d1c1eea35e352cda"><td class="mdescLeft">&#160;</td><td class="mdescRight">Used to page output of functions like cat, hexdump, etc.  <a href="#a8103355735500cb8d1c1eea35e352cda">More...</a><br /></td></tr>
<tr class="separator:a8103355735500cb8d1c1eea35e352cda"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>fatfs test utilities with user interface </p>
<dl class="section user"><dt>Copyright &copy; 2014-2017 Mike Gore, All rights reserved. GPL License</dt><dd></dd></dl>
<dl class="section see"><dt>See also</dt><dd><a href="http://github.com/magore/hp85disk">http://github.com/magore/hp85disk</a> </dd>
<dd>
<a href="http://github.com/magore/hp85disk/COPYRIGHT.md">http://github.com/magore/hp85disk/COPYRIGHT.md</a> for specific Copyright details</dd></dl>
<dl class="section user"><dt>You are free to use this code under the terms of GPL</dt><dd>please retain a copy of this notice in any code you use it in.</dd></dl>
<p>This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.</p>
<p>This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.</p>
<p>You should have received a copy of the GNU General Public License along with this program. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. </p>

<p>Definition in file <a class="el" href="posix__tests_8c_source.html">posix_tests.c</a>.</p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="aeca034f67218340ecb2261a22c2f3dcd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define BUFSIZE&#160;&#160;&#160;512</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix__tests_8c_source.html#l00043">43</a> of file <a class="el" href="posix__tests_8c_source.html">posix_tests.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00302">copy()</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="aeff1a094f806e4de30ef181e9a09cbe4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> long cat </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dopage</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Display the contents of a file. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">name</td><td>file name. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">option</td><td>&ndash;p page display </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>void. </dd></dl>

<p>Definition at line <a class="el" href="posix__tests_8c_source.html#l00259">259</a> of file <a class="el" href="posix__tests_8c_source.html">posix_tests.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00084">posix_tests()</a>.</p>

</div>
</div>
<a class="anchor" id="aa20d1cbe580573b96d08f9429a08fcd3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> long copy </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>to</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Copy a file. </p>
<ul>
<li>Credit: part of FatFs avr example project (C)ChaN, 2013. <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">from</td><td>source file. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">to</td><td>destination file. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>bytes written </dd></dl>
</li>
</ul>

<p>Definition at line <a class="el" href="posix__tests_8c_source.html#l00302">302</a> of file <a class="el" href="posix__tests_8c_source.html">posix_tests.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00084">posix_tests()</a>.</p>

</div>
</div>
<a class="anchor" id="ad8b824040392b9b3a34fed57d72a1313"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int hexdump </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dopage</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>hex listing of file with paging, "q" exits </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*name</td><td>file to hexdump  void </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="posix__tests_8c_source.html#l00363">363</a> of file <a class="el" href="posix__tests_8c_source.html">posix_tests.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00084">posix_tests()</a>.</p>

</div>
</div>
<a class="anchor" id="a0e04c0a3e471dd3212246ad0e0f710ea"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> long logfile </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>str</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Log string to a file. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">name</td><td>name of file to create. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">str</td><td>string containing file contents. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>size of string, or 0 on error </dd></dl>

<p>Definition at line <a class="el" href="posix__tests_8c_source.html#l00600">600</a> of file <a class="el" href="posix__tests_8c_source.html">posix_tests.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00084">posix_tests()</a>.</p>

</div>
</div>
<a class="anchor" id="ad6e0550e9557209680b1640c814746d8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int ls </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>verbose</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Directory listing. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>file name or directory </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">option</td><td>-l for detail </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>number of files </dd></dl>

<p>Definition at line <a class="el" href="posix__tests_8c_source.html#l00517">517</a> of file <a class="el" href="posix__tests_8c_source.html">posix_tests.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00084">posix_tests()</a>.</p>

</div>
</div>
<a class="anchor" id="a573eb4f7de945139101e2cfb59111722"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int ls_info </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>verbose</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>list one file </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>file name or directory </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">verbose</td><td>1 = detail, 0 = name only </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 on success 0 on fail </dd></dl>

<p>Definition at line <a class="el" href="posix__tests_8c_source.html#l00465">465</a> of file <a class="el" href="posix__tests_8c_source.html">posix_tests.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00517">ls()</a>.</p>

</div>
</div>
<a class="anchor" id="ae59f48db88ed3bb8f9c549a7fbe9717d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void posix_help </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>full</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix__tests_8c_source.html#l00046">46</a> of file <a class="el" href="posix__tests_8c_source.html">posix_tests.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00084">posix_tests()</a>, and <a class="el" href="user__main_8c_source.html#l00592">user_help()</a>.</p>

</div>
</div>
<a class="anchor" id="a36d7c93fa658c992f9a881b89bb7f0af"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int posix_tests </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>argv</em>[]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX tests. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">agc</td><td>cont of arguments</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 The ruturn code indicates a command matched. </dd>
<dd>
0 if no rules matched </dd></dl>

<p>Definition at line <a class="el" href="posix__tests_8c_source.html#l00084">84</a> of file <a class="el" href="posix__tests_8c_source.html">posix_tests.c</a>.</p>

<p>Referenced by <a class="el" href="user__main_8c_source.html#l00631">user_tests()</a>.</p>

</div>
</div>
<a class="anchor" id="ad6ce57bb64ab0fd7f91d04079fc4b070"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int setpage </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>count</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix__tests_8c_source.html#l00424">424</a> of file <a class="el" href="posix__tests_8c_source.html">posix_tests.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00084">posix_tests()</a>.</p>

</div>
</div>
<a class="anchor" id="a8d4059ff64356316a5f13d16cdd90fb5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> sum </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>sum of a file with 16bit hex and integer results </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*name</td><td>file to sum  void </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="posix__tests_8c_source.html#l00626">626</a> of file <a class="el" href="posix__tests_8c_source.html">posix_tests.c</a>.</p>

<p>Referenced by <a class="el" href="ff_8c_source.html#l02212">dir_find()</a>, <a class="el" href="ff_8c_source.html#l02292">dir_register()</a>, <a class="el" href="ff_8c_source.html#l05296">f_mkfs()</a>, <a class="el" href="time_8c_source.html#l00156">Leap_Days_Since_1900()</a>, <a class="el" href="matrix_8c_source.html#l00490">MatMul()</a>, <a class="el" href="posix__tests_8c_source.html#l00084">posix_tests()</a>, <a class="el" href="ff_8c_source.html#l01742">put_lfn()</a>, <a class="el" href="posix__tests_8c_source.html#l00626">sum()</a>, and <a class="el" href="ff_8c_source.html#l01841">sum_sfn()</a>.</p>

</div>
</div>
<a class="anchor" id="a568ac783ed7c976d2832966dcbce607c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int testpage </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>count</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Used to page output of functions like cat, hexdump, etc. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*name</td><td>file to hexdump  -1 = quit, return count or 0 at new page </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="posix__tests_8c_source.html#l00435">435</a> of file <a class="el" href="posix__tests_8c_source.html">posix_tests.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00259">cat()</a>, and <a class="el" href="posix__tests_8c_source.html#l00363">hexdump()</a>.</p>

</div>
</div>
<a class="anchor" id="a759815811bc60d82eba7fa71442b9d9c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> long upload </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Capture an ASCII file to sdcard First blank line exits capture. </p>
<p>FIXME TODO </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*name</td><td>file to save on sdcard  void </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="posix__tests_8c_source.html#l00661">661</a> of file <a class="el" href="posix__tests_8c_source.html">posix_tests.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00084">posix_tests()</a>.</p>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a class="anchor" id="a8103355735500cb8d1c1eea35e352cda"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int _pagesize = 25</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Used to page output of functions like cat, hexdump, etc. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*name</td><td>file to hexdump  void </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="posix__tests_8c_source.html#l00422">422</a> of file <a class="el" href="posix__tests_8c_source.html">posix_tests.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00424">setpage()</a>, and <a class="el" href="posix__tests_8c_source.html#l00435">testpage()</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 31 2018 21:22:17 for ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
